From 4a37a344c19a89d1d47a2713e311ec9cd86b5751 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 29 Apr 2007 18:39:59 +0000 Subject: [PATCH] Remove a pointless check from the previous commit that added a new string. 2007-04-29 Matthias Clasen * io-jpeg.c: Remove a pointless check from the previous commit that added a new string. svn path=/trunk/; revision=17714 --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-jpeg.c | 10 ---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 124194a9da..df7c7461c5 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2007-04-29 Matthias Clasen + + * io-jpeg.c: Remove a pointless check from the previous + commit that added a new string. + 2007-04-28 Matthias Clasen * io-png.c: diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index 477751216e..1df2b813ca 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -965,18 +965,8 @@ real_save_jpeg (GdkPixbuf *pixbuf, w = gdk_pixbuf_get_width (pixbuf); h = gdk_pixbuf_get_height (pixbuf); - - /* no image data? abort */ pixels = gdk_pixbuf_get_pixels (pixbuf); - if (pixels == NULL) { - g_set_error (error, - GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_CORRUPT_IMAGE, - _("Image contains no pixels.")); - return FALSE; - } - /* Allocate a small buffer to convert image data, * and a larger buffer if doing to_callback save. */ -- 2.30.2